/*
 * @Author: liyin 2179253556@qq.com
 * @Date: 2023-12-11 11:47:32
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2024-01-12 17:33:00
 * @FilePath: \billboard-statistics-screen\src\store\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import Vuex from 'vuex'
// 引入 router 在vuex内使用router跳转
import router from '../router'

Vue.use(Vuex)
Vue.use(router)

export default new Vuex.Store({
  state: { // 定义tabs 所需参数
    // schoolList: []
  },
  mutations: {
    SET_SCHOOL_LIST(state, val) {
      // state.schoolList = val
    },
  },
  actions: {
    setSchoolList(context, obj) {
      context.commit('SET_SCHOOL_LIST', obj)
    }
  }
})
